import axiosService from '@/http/axiosService'

export const getProductConfigById = (id) => {
  return axiosService.post('/backend/applyConfig', {
    product_id: id
  })
}

export const saveProductConfig = (data) => {
  return axiosService.post('/backend/saveApplyConfig', data)
}

export const changeProductStatus = (id, status) => {
  return axiosService.post('/backend/applySwitch', {
    product_id: id,
    apply_switch: status
  })
}
